import request from '@/utils/request'

// 查询地市信访列表
export function listLetter(query) {
  return request({
    url: '/city/letter/page',
    method: 'get',
    params: query
  })
}

// 查询地市信访详细
export function getLetter(id) {
  return request({
    url: '/city/letter/' + id,
    method: 'get'
  })
}

// 新增地市信访
export function addLetter(data) {
  return request({
    url: '/city/letter',
    method: 'post',
    data: data
  })
}

// 修改地市信访
export function updateLetter(data) {
  return request({
    url: '/city/letter',
    method: 'put',
    data: data
  })
}

// 删除地市信访
export function delLetter(id) {
  return request({
    url: '/city/letter/' + id,
    method: 'delete'
  })
}

// 查询地市信访详细
export function checkLetter(id) {
  return request({
    url: '/city/letter/checkRepeatClaim/' + id,
    method: 'get'
  })
}

export function resetLetter(id) {
  return request({
    url: '/city/letter/reset/' + id,
    method: 'get'
  })
}

// 查询地市信访退回
export function backLetter(id) {
  return request({
    url: '/city/letter/back/' + id,
    method: 'get'
  })
}

